package com.gy.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.gy.entity.Form.FormEntity;
import com.gy.result.Result;

public interface FormService extends IService<FormEntity> {
   FormEntity getFormsByUserId(Long id);

    IPage<FormEntity> getFormsByUserIdPaged(int page, int size);

    Result saveForm(FormEntity form);

    Result deleteForm(Long id);

    Result addMember(Long id, Long userId);

    Result listMembers(Long id);

    Result deleteMember(Long id, Long userId);

    Result updateMemberRole(Long id, Long userId, String role);


 Result updateFromById(FormEntity form);
}
